<?php if (defined('APP')) die('error');?>
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2016/11/2 0002
* Time: 下午 8:21
*/
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户信息编辑</title>
</head>
<h1>个人资料</h1>
<form method="post">
    昵称：<input type="text" name="nickname" value="<?php echo $data['nickname'];?>"/>
    性别：
    <input type="radio" name="gender" value="男" id="male"  <?php if($data['gender']=='男') echo 'checked';?>/>男
    <input type="radio" name="gender" value="女" id="female" <?php if($data['gender']=='女') echo 'checked';?>/>女

    邮箱：<input type="text" name="email" value="<?php echo $data['email'];?>"/>
    QQ号：<input type="text" name="qq" value="<?php echo $data['qq'];?>"/>
    个人主页：<input type="text" name="url" value="<?php echo $data['url'];?>"/>
    所在城市：<select name="city"><option value="未选择">未选择</option>
        <?php foreach($city as $v):?>
        <option value="<?php echo $v ?>"<?php if($data['city']==$v) echo'selected';?>><?php echo $v ?> </option>
        <?php endForeach;?>
         </select>
    语言技能：<?php foreach($skill as $v):?>
              <input type="checkbox" name="skill[]" value="<?php echo $v ?>"<?php if(in_array($v,$data['skill'])) echo 'checked';?>/><?php echo $v;?>
              <?php endForeach;?>
              <input type="checkbox" name="skill[]" value="HTML"/>HTML
              <input type="checkbox" name="skill[]" value="JavaScript"/>JavaScript
              <input type="checkbox" name="skill[]" value="PHP"/>PHP
              <input type="checkbox" name="skill[]" value="C++"/>C++
    自我介绍：<textarea class="description" name="descrpttion"><?php echo $data['$description'];?></textarea>
              <input type="submit" value="保存资料"/>
              <input type="reset" value="重新填写"/>



</form>
</html